﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Reflection;
using Model.RF.SourceCategory;
using IDAL.RF.SourceCategory;

namespace BLL.RF.SourceCategory
{
    public class TemperatureCheck : BaseService<TemperatureCheckInfo>
    {
        private static readonly ITemperatureCheck dal = DALFactory.DataAccess.CreateTemperatureCheck();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public IList<TemperatureCheckInfo> TemperatureCheck_GetbyProductSN(string productSN)
        {
            return dal.TemperatureCheck_GetbyProductSN(productSN);
        }

        public IList<TemperatureCheckInfo> TemperatureCheck_GetbyDT(DateTime dt1, DateTime dt2)
        {
            return dal.TemperatureCheck_GetbyDT(dt1, dt2);
        }
    }
}
